<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <%
    	String path = request.getContextPath();
    	String basePath = request.getScheme() + "://"
    			+ request.getServerName() + ":" + request.getServerPort()
    			+ path + "/";
    %>

     <!-- 文章显示 -->
     <div class="span8" style='margin-left:0px;' id="content" >
      <div class="panel">
		<div class="panel-heading word tou"><strong>简介</strong></div>
        <div class=" contentwordcolor" style="padding:20px">
        <c:if test="${not empty department.dUrl }">
         <a href="${department.dUrl }" target="_blank">进入主页</a>
        </c:if>
        
           <h3 align="center">${department.dName }</h3>
           <hr>
           ${department.dIntro }
       </div>
       </div>
    </div><!-- end of 文章显示 -->
    
    <!-- 相似文档 -->
     <div class="span4 tabbable"  id="body-content">
     <div class="panel">
		<div class="panel-heading word tou"><strong>成员</strong></div>
	    <div class=" tab-content">
			<c:if test="${not empty ld1 }">
				<table class='table'>
					<thead>
						<c:forEach items="${ld1 }" var="i">
							<tr>
								<th>主任</th>
								<c:if test="${not empty i.officeLocation }">
									<th>办公地点</th>
								</c:if>
								<c:if test="${not empty i.phone }">
									<th>办公电话</th>
								</c:if>
							</tr>
						</c:forEach>
					</thead>
					<c:forEach items="${ld1 }" var="i">
						<tr>
							<td><a target="_parent"
								href="<%=basePath %>teacherdw/detail/${i.id}">${i.name }</a></td>

							<c:if test="${not empty i.officeLocation }">
								<td>${i.officeLocation }</td>
							</c:if>
							<c:if test="${not empty i.phone }">
								<td>${i.phone }</td>
							</c:if>
						</tr>
					</c:forEach>
				</table>
			</c:if>
			<br>
			<c:if test="${not empty ld2 }">
				<br />
				<table class='table'>
					<thead>
						<c:forEach items="${ld2 }" var="i">
							<tr>
								<th>副主任</th>
								<c:if test="${not empty i.officeLocation }">
									<th>办公地点</th>
								</c:if>
								<c:if test="${not empty i.phone }">
									<th>办公电话</th>
								</c:if>
							</tr>
						</c:forEach>
					</thead>
					<c:forEach items="${ld2 }" var="i">
						<tr>
							<td><a target="_parent"
								href="<%=basePath %>teacherdw/detail/${i.id}">${i.name }</a></td>
							<c:if test="${not empty i.officeLocation }">
								<td>${i.officeLocation }</td>
							</c:if>
							<c:if test="${not empty i.phone }">
								<td>${i.phone }</td>
							</c:if>
						</tr>
					</c:forEach>
				</table>
				<br />
			</c:if>
			<br>
			<c:if test="${not empty teachers }">
				<h3>教师成员：</h3>
				<table class='table table-bordered'>
					<caption></caption>
					<tbody>
						<c:forEach begin="1" end="${fn:length(teachers)}" step="4"
							varStatus="status">
							<tr class="row-fluid">
								<c:forEach items="${teachers }" var="steacher"
									begin="${(status.count-1)*4 }" end="${(status.count)*4-1 }">
									<td><a
										href='<%=basePath %>teacherdw/detail/${steacher.id }'>
											${steacher.name }</a></td>
								</c:forEach>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:if>
		</div>    
       </div>    
    </div><!-- end of 相似文档 -->
